boot.initrd.luks.devices.<name>.preOpenCommands
Commands that should be run right before we try to mount our LUKS device. This can be useful, if the keys needed to open the drive is on another partition.
- Type
strings concatenated with "\n"- Default
""- Example
'' mkdir -p /tmp/persistent mount -t zfs rpool/safe/persistent /tmp/persistent ''- Declared
- <nixpkgs/nixos/modules/system/boot/luksroot.nix>